<include file="Public:header" />
{:W('Navigation')}
<div class="body-right">
	<div class="row-table">
		<div class="row-table-title">个人资料</div>
		<div class="row-table-body">
			<form class="form-horizontal" action="{:U('core/user/edit')}" method="post">
				<input type="hidden" name="user_id" value="{$user['user_id']}"/>
				<p class="form-title">基本信息&nbsp;&nbsp;<a href="javascript:history.go(-1);">返回</a></p>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">用户名</label>
					<div class="col-sm-3">
						{$user.name}
					</div>
					<label for="name" class="col-sm-2 control-label">用户类别</label>
					<div class="col-sm-3">
						<if condition="$user['category_id'] == 1">管理员<else />员工</if>
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">部门</label>
					<div class="col-sm-3">
						{$department_list[$user['department_id']][name]}
					</div>
					<label for="name" class="col-sm-2 control-label">岗位</label>
					<div class="col-sm-3">
						{$position['name']}
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">员工状态</label>
					<div class="col-sm-3">
						{$status[$user['status']]}
					</div>
					<label for="name" class="col-sm-2 control-label">员工类型</label>
					<div class="col-sm-3">
						{$type[$user['type']]}
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">加班时间</label>
					<div class="col-sm-3">
						{$overtime}小时
					</div>
					<label for="name" class="col-sm-2 control-label">调休时间</label>
					<div class="col-sm-3">
						{$lieutime}小时
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">剩余加班时间</label>
					<div class="col-sm-3" style="color:#F00">
						{$available_overtime}小时
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">工作状态</label>
					<div class="col-sm-3">
						{$work_state}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">性别</label>
					<div class="col-sm-3">
						{$sex}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">邮箱</label>
					<div class="col-sm-3">
						{$user.email}
					</div>
				</div><div class="form-group">
					<label class="col-sm-2 control-label">手机</label>
					<div class="col-sm-3">
						{$user.telephone}
					</div>
				</div><div class="form-group">
					<label class="col-sm-2 control-label">联系地址</label>
					<div class="col-sm-3">
						{$user.address}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-3">
						<input type="button" class="btn" value="关闭" onclick="javascript:history.go(-1);"/>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
<div class="clear"></div>
<include file="Public:alert" />
<include file="Public:footer" />